<template>
  <h2 ref="title">vue3的组件通讯</h2>

  <test></test>
  <test2></test2>
</template>

<script setup>
import { reactive, ref, onBeforeMount, onMounted, onBeforeUpdate, onUpdated } from "vue";
import test from '@/components/test.vue'
import test2 from '@/components/test2.vue'


const obj = reactive({
  title: '支付'
})

const getData = (res) => {
  console.log('res:', res)
  obj.title = res;
}

</script>

<style scoped lang="scss"></style>
